<?php
/*
* Payable.php
* author 
* @version 0.0.1
*/
App::uses('AppModel', 'Model');
class Payable extends AppModel {
    public $name = 'Payable';
    
    public $validate = array(
        'excel_file' => array(
            'rule' => array(
                'extension', array(
                    'xlsx', 'xls', 'xlsm', 'xlsb' //Possible Excel file extension
                )
            ),
            'message' => 'You must supply a valid file.'
        )
    );
    
    public $belongsTo = array(
        'BatchList' => array(
            'className' => 'BatchList'
        )
    );
}